package com.ratta.supernote.note.plugincore.view;

import androidx.annotation.NonNull;

import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.ratta.supernote.note.plugincore.core.PluginAppAPI;
import com.ratta.supernote.note.plugincore.view.touchview.TouchViewManager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class PluginViewPackage implements ReactPackage {

    PluginAppAPI pluginApp;

    public PluginViewPackage() {
    }

    public PluginViewPackage(PluginAppAPI pluginApp) {
        this.pluginApp = pluginApp;
    }

    @NonNull
    @Override
    public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactApplicationContext) {

        return Collections.emptyList();
    }

    @NonNull
    @Override
    public List<ViewManager> createViewManagers(@NonNull ReactApplicationContext reactApplicationContext) {
        List<ViewManager> list = new ArrayList<>();
        list.add(new TouchViewManager(reactApplicationContext));

        return list;
    }
}
